package com.caigou.comm.base.utils

import android.content.Context
import android.text.TextUtils
import com.caigou.comm.base.widget.LoadingDialog

/**
 * @author #Suyghur.
 * Created on 2021/09/29
 */
object DialogUtil {


    fun getLoadingDialog(context: Context, message: String): LoadingDialog {
        return LoadingDialog.builder(context)
            .setCancelable(true)
            .setCanceledOnTouchOutside(false)
            .setHintText(message)
            .showHintText(!TextUtils.isEmpty(message))
            .create()
    }
}